<template>
  <div style="margin-top:15px">
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="currentPage"
      :page-sizes="[10, 20, 25, 30]"
      :page-size="pageSize"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total"
    >
    </el-pagination>
  </div>
</template>

<script>
import {mapState,mapMutations,mapActions} from 'vuex'
export default {
  methods: {
    ...mapMutations("msbdList",['SET_CURRENTPAGE','SET_INPUTVAL','SET_PAGESIZE']),
    ...mapActions("msbdList",["getMsbdlist"]),
    handleSizeChange(val) {
      this.SET_PAGESIZE(val)
      this.getMsbdlist()

    },
    handleCurrentChange(val) {
      this.SET_CURRENTPAGE(val)
      this.getMsbdlist()
    },
  },
  computed:{
    ...mapState("msbdList",['currentPage','pageSize','total'])
  },
  data() {
    return {
      
    };
  },
};
</script>

<style scoped>
</style>